/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kphoto.mc.logic;


/**
 *
 * @author AndreasK
 */
public class Invoice {
    
    private String invoiceId;
    private String contactId;
    private double netSum;
    private double brutSum;
    private double vat;
    
    public Invoice(String invID){
        invoiceId = invID;
    }
    
    // TODO: How will invoices be created and existing ones received.
    public static Invoice ReceiveInvoice(){
        Invoice newInvoice = new Invoice(null);
        // TODO: Implement method to receive invoice from database
        return newInvoice;
    }
    
    /*
     * Returns the contactId.
     * A contactId can't be changed for a invoice.
     * A invoice stays with a contact and the 
     * assignment is done at invoice creation time.
     */
    public String getContactId() {
        return contactId;
    }

    /*
     * Returns the invoiceId.
     * A invoiceId can't be changed afterwards.
     * It is created at invoice creation time.
     */
    public String getInvoiceId() {
        return invoiceId;
    }
    
    public double getNetSum() {
        return netSum;
    }

    public void setNetSum(double netSum) {
        this.netSum = netSum;
    }

    public double getBrutSum() {
        return brutSum;
    }

    public void setBrutSum(double brutSum) {
        this.brutSum = brutSum;
    }

    public double getVat() {
        return vat;
    }

    public void setVat(double vat) {
        this.vat = vat;
    }
    
}
